package com.zhang.modules.mianShi.rep;

import com.zhang.common.jpa.rep.BaseRep;
import com.zhang.modules.mianShi.entity.Equipment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface EquipmentRep extends BaseRep<Equipment,String> {


    @Query(value = "select * from app_equipment where system_id = ?1 and deleted = false",nativeQuery = true)
    Page<Equipment> findAllBySystemId(String systemId, Pageable pageable);
}
